/*
 *    Copyright (c) 2018-2025, boss All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions are met:
 *
 * Redistributions of source code must retain the above copyright notice,
 * this list of conditions and the following disclaimer.
 * Redistributions in binary form must reproduce the above copyright
 * notice, this list of conditions and the following disclaimer in the
 * documentation and/or other materials provided with the distribution.
 * Neither the name of the boss developer nor the names of its
 * contributors may be used to endorse or promote products derived from
 * this software without specific prior written permission.
 * Author: boss
 */

package com.hopes.bizz.close.visitor.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.hopes.bizz.close.common.constant.enums.ParkCloseSysDictEnum;
import com.hopes.boss.admin.api.resolver.DictResolver;
import com.hopes.boss.admin.api.resolver.enums.AdminDictEnum;
import com.hopes.boss.common.entity.BaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;

/**
 * 危险品车辆预约
 *
 * @author pig
 * @date 2024-01-26 14:34:05
 */
@Data
@TableName(value = "closed_hazard_car_apply", excludeProperty = "tenantId")
@EqualsAndHashCode(callSuper = true)
@Schema(description = "危险品车辆预约")
public class ClosedHazardCarApplyEntity extends BaseEntity {

    private static final long serialVersionUID = 1L;


	/**
	* ID
	*/
    @TableId(type = IdType.ASSIGN_ID)
    @Schema(description="ID")
    private Long id;

	/**
	* 状态
	*/
    @Schema(description="状态")
    private String status;

	/**
	 * GPS设备编码
	 */
	@Schema(description="GPS设备编码")
    private String gpsDeviceNo;

	/**
	* 货运单号
	*/
    @Schema(description="货运单号")
    private String billNo;

	/**
	* 接收人姓名
	*/
    @Schema(description="接收人姓名")
    private String acceptName;

	/**
	* 接收人联系电话
	*/
    @Schema(description="接收人联系电话")
    private String acceptPhone;

	/**
	* 计划入园时间
	*/
    @Schema(description="计划入园时间")
    private Date planEnterTime;

	/**
	* 计划出园时间
	*/
    @Schema(description="计划出园时间")
    private Date planLeaveTime;

	/**
	* 实际入园时间
	*/
    @Schema(description="实际入园时间")
    private Date realEnterTime;

	/**
	* 实际出园时间
	*/
    @Schema(description="实际出园时间")
    private Date realLeaveTime;

	/**
	* 是否企业车辆
	*/
    @Schema(description="是否企业车辆")
    private String companyCar;

	/**
	* 危险品车辆
	*/
    @Schema(description="危险品车辆")
    private Long hazardCardId;

	/**
	* 车牌号
	*/
    @Schema(description="车牌号")
    private String licencePlateNum;

	/**
	* 是否空车
	*/
    @Schema(description="是否空车")
    private String emptyCar;

	/**
	* 货物类型
	*/
    @Schema(description="货物类型")
    private String hazardType;

	/**
	* 司机姓名
	*/
    @Schema(description="司机姓名")
    private String driverName;

	/**
	* 司机联系电话
	*/
    @Schema(description="司机联系电话")
    private String driverPhone;

	/**
	* 司机身份证号
	*/
    @Schema(description="司机身份证号")
    private String driverIdNum;

	/**
	* 司机身份证图片
	*/
    @Schema(description="司机身份证图片")
    private String driverIdImg;

	/**
	* 押运员姓名
	*/
    @Schema(description="押运员姓名")
    private String supercargoName;

	/**
	* 押运员联系电话
	*/
    @Schema(description="押运员联系电话")
    private String supercargoPhone;

	/**
	* 押运员身份证号
	*/
    @Schema(description="押运员身份证号")
    private String supercargoIdNum;

	/**
	* 押运员身份证图片
	*/
    @Schema(description="押运员身份证图片")
    private String supercargoIdImg;

	/**
	* 审核状态
	*/
    @Schema(description="审核状态")
    private Integer auditStatus;

	/**
	* 审核结果描述
	*/
    @Schema(description="审核结果描述")
    private String auditStatusDesc;

	/**
	 * 申请时间
	 */
	@Schema(description = "申请时间")
	private Date applyTime;

	/**
	 * 申请人Id
	 */
	@Schema(description="申请人Id")
	private Long applyUserId;

	/**
	* 备注
	*/
    @Schema(description="备注")
    private String remark;

	/**
	* 机构Id
	*/
    @Schema(description="机构Id")
    private Long orgId;


    public String getOrgIdStr() {
    	return DictResolver.getItemLabelByValue(AdminDictEnum.sys_company, this.getOrgId());
	}

	public String getStatusStr() {
    	return DictResolver.getItemLabelByValue(ParkCloseSysDictEnum.close_flow_bill_status, this.getStatus());
	}

	public String getHazardTypeStr() {
    	return DictResolver.getItemLabelByValue(ParkCloseSysDictEnum.close_flow_bill_hazard_type, this.getHazardType());
	}

	public String getAuditStatusStr() {
    	return DictResolver.getItemLabelByValue(ParkCloseSysDictEnum.close_flow_bill_audit_status, this.getAuditStatus());
	}

}
